# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-dask
pkgver=2.23.0
pkgrel=0
pkgdesc="Parallel computing with task scheduling"
url="https://dask.org/"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-partd
license="BSD-3-Clause"
depends="python3 py3-toolz py3-numpy py3-pandas py3-fsspec py3-partd py3-yaml"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="https://pypi.python.org/packages/source/d/dask/dask-$pkgver.tar.gz"
builddir="$srcdir/dask-$pkgver"

case "$CARCH" in
	# Python segfaults while running the tests
	ppc64le) options="$options !check" ;;
esac

build() {
	python3 setup.py build
}

check() {
	# test_parquet.py requires not available packages
	pytest --ignore=dask/dataframe/io/tests/test_parquet.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="6ce0f1471357cfa4f5c7f2e2ab31009e68d3e5de363569867d67038ae2e1a9c69552797fb232fb92deafc3b57aa040df9e60669c1856cbb53505a905c4f4b052  dask-2.23.0.tar.gz"
